{extend name="base" /}
{block name="js"}
<script src="__ADMIN__/goods/goods.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div class="l-loading" style="display: block" id="wst-loading"></div>
<div class="wst-toolbar">
所属分类：
<select id="cat_0" class='ipt pgoodsCats' level="0" onchange="WST.ITGoodsCats({id:'cat_0',val:this.value,isRequire:false,className:'pgoodsCats'});">
   <option value="">-请选择-</option>
   {volist name=":WSTGoodsCats(0)" id="vo"}
	<option value="{$vo['catId']}">{$vo['catName']}</option>
	{/volist}
</select>
商品：<input type="text" name="goodsName"  placeholder='商品名称/商品编号' id="goodsName" class='j-ipt'/>
<button class="btn btn-blue" onclick='javascript:loadStoreGrid(0)'>查询</button>
<div style='clear:both'></div>
</div>
<div class="wst-toolbar">
<button class="btn " onclick="javascript:changeSale(1,'store')">上架</button>
<button class="btn btn-blue" onclick="javascript:changeGoodsStatus('isRecom','store')">推荐</button>
<button class="btn btn-blue" onclick="javascript:changeGoodsStatus('isNew','store')">新品</button>
<button class="btn btn-blue" onclick="javascript:changeGoodsStatus('isBest','store')">精品</button>
<button class="btn btn-blue" onclick="javascript:changeGoodsStatus('isHot','store')">热销</button>
<button class="btn btn-blue" onclick="javascript:benchDel('store')">删除</button>
<button class="btn btn-green" onclick="javascript:add('store')">新增</button>
</div>
<div id="maingrid"></div>
<script>
$(function(){initStoreGrid();})
var goodsLogo = "{:WSTConf('CONF.goodsLogo')}";
</script>
{/block}